# Require some files
require 'yaml'
require_relative 'unswear/string'
require_relative 'unswear/version'

module Unswear
  extend self

    # List all swear words
    def words
      path = File.join(__dir__, '../config/blacklist.yml')
      yaml = YAML.load_file(path)
      return yaml
    end

    # Return Unswear's version
    def version
      Unswear::VERSION
    end

end
